

import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_fronter_service/route/routers.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:web_socket_channel/status.dart' as status;
import 'package:web_socket_channel/web_socket_channel.dart';
import 'package:widgets_easier/widgets_easier.dart';
import 'controller/AllControllerBinding.dart';
import 'dart:io' show Platform;
import 'package:get/get.dart';

import 'controller/userController.dart';


main() {
  runApp(
      const MyRoot());
}

class MyRoot extends StatelessWidget {
  const MyRoot({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
        builder: BotToastInit(),
        initialBinding: AllControllerBinding(),
        navigatorObservers: [BotToastNavigatorObserver()],
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          //作用：改变主题颜色
          primarySwatch: Colors.blue,
        ),
        initialRoute: "/",
        getPages:AppRoutes.routes
    );
  }
}
